package day05;
//随机加法运算器
import java.util.Scanner;
public class Addition {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
       /* int score =0;
        for (int i=1; i<=10;i++){//10次
           //1.出题 2.().random()*10;
            int a=(int)(Math.random()*100);
            int b=(int)(Math.random()*100);
            int c=a+b;
            System.out.println("("+i+")"+a+"+"+b+"=？");
            System.out.println("答吧！");
            int num =scan.nextInt();
            if (num==c){
                System.out.println("答对了");
                score+=10;

            }else{
                System.out.println("答错了");
            }
        }
        System.out.println("总分为："+score);*/




        for (int num=1;num<=9;num++){
            if(num==5){//在某种特定条件下，提前结束循环
                break;//跳出循环

            }
            System.out.println(num+"*9="+num*9);
        }
        for (int num =1;num<=9;num++){
            if (num%3!=0){
                continue;
            }
            System.out.println(num+"*9="+num*9);
        }
    }
}
